package com.mlnx.work.dao.mysql;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mlnx.work.entity.ProjectTask;
import com.mlnx.work.pojo.dto.DateDTO;
import com.mlnx.work.pojo.vo.ProjectTaskListVO;
import com.mlnx.work.pojo.vo.TaskDetailVO;
import com.mlnx.work.pojo.vo.TaskListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * author name: amanda.shan
 * create time: 2020-12-28 16:58:01
 */
public interface ProjectTaskMapper extends BaseMapper<ProjectTask> {

    List<TaskListVO> selectTaskByMember(Integer memberId);

    List<TaskListVO> selectTaskByMemberAndDate(@Param("memberId") Integer memberId, @Param("dateDTO") DateDTO dateDTO);

    TaskDetailVO selectParentTaskById(Integer taskId);

    List<ProjectTask> selectByParentId(Integer taskId);

    Page<ProjectTaskListVO> selectParentTaskByDirId(@Param("dirId") Integer dirId, Page page);

    List<TaskListVO> getVerifyTaskListByDept(Integer deptId);


}

